package cn.tedu.um2.controller;

import cn.tedu.um2.pojo.User;
import cn.tedu.um2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired(required = false)
    private UserService userService;

    @RequestMapping("/findUser")
    public User findUser(Integer id){
        return userService.selectUserById(id);
    }

}
